{%extends "base.html" %}
{%block main%}
	{% if user.is_authenticated %}
		{{ user.username }}, 您已经登陆, 点这里可<a href="{{APP_ROOT}}logout/">退出</a>
	{% else %}
	<form action="{{APP_ROOT}}login/?next={{NEXT}}" method="post" name="login_form" id="login_form">
		<span class="error">{{error}}</span>
		{{ form.as_ul }}
		<br />
		<li>验证码:<input name="verifyCode" id="verifyCode" type="text" value="" maxlength="4" size="4" />
		<img onmouseover="this.style.cursor='hand';" title="看不清楚,换一张" id='codeImg' onclick="reload_vcode(this);" src="{{APP_ROOT}}verifyCode/" /></li>
		<br />
		<input type="button" value="登 录" onclick="submits('login_form');" />
	</form>
	<script>
	$('#login_form').checkForm();
	</script>
	{% endif %}
{%endblock%}
